package com.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.blog.common.Result.PageResult;
import com.blog.dto.UserDto;
import com.blog.dto.UserRegisterDto;
import com.blog.entity.User;


public interface IUserService extends IService<User> {
    /**
     * 登录
     * @param userDto
     * @return
     */
    User login(UserDto userDto);

    /**
     * 注册用户
     * @param userRegisterDto
     */
    void register(UserRegisterDto userRegisterDto);


    /**
     * 分页查询用户
     * @param pageNum
     * @param pageSize
     * @return
     */
    PageResult getUsers(Integer pageNum, Integer pageSize);
}
